<?php

declare(strict_types=1);

namespace App\Request;

class ActivityRequest extends BaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        $rules = [
            'detail' => [
                'id' => 'required|integer',
            ],
            'anroll' => [
                'id' => 'required|integer',
            ],
            'contribute' => [
                'id' => 'required|integer',
                'relation_id' => 'required|integer',
                'url' => 'required|string',
            ],
        ];
        return $this->useRule($rules);
    }

    public function attributes(): array
    {
        return [
            'id' => 'ID',
            'relation_id' => '活动分类话题',
            'url' => '链接',
        ];
    }
}
